﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestPlatform.Core
{
    public static class ListExtensions
    {
        private static Random r = new Random();

        public static T RandomElement<T>(this IList<T> list)
        {
            return list[r.Next(list.Count - 1)];
        }
    }
}
